<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>微商城</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<link href="<?php echo http_host(); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo http_host(); ?>/js/jquery.min.js"></script>
<meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body>
<!--顶部搜索栏-start-->
<div id="search-placeholder" class="search">
    <div class="search_box">
        <a href="<?php echo url('search/index'); ?>">
        <span class="search_btn"><img src="<?php echo http_host(); ?>/images/weixin/search.png"></span>
        <input type="text" name="keyword" value="" placeholder="搜索您想要的商品"></a>
    </div>
</div>
<!--顶部搜索栏-end-->

<?php if ($slide_list) { ?>
<!--顶部滚动广告栏-start-->
<div class="tbanner">
    <!-- Swiper -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
        <?php foreach($slide_list as $k=>$v){ ?>
            <div class="swiper-slide"><a href="<?php echo $v['url']; ?>"><img src="<?php echo $v['pic']; ?>" alt="<?php echo $v['title']; ?>"></a></div>
        <?php } ?>
        </div>
        <!-- Add Pagination -->
        <div class="swiper-pagination swiper-pagination-white"></div>
    </div>
</div>
<link rel="stylesheet" href="<?php echo http_host(); ?>/css/swiper.min.css">
<script type="text/javascript" src="<?php echo http_host(); ?>/js/swiper.min.js"></script>
<style>
.swiper-container{width:100%;height:auto;}
.swiper-slide{text-align:center;font-size:18px;background:#fff;}
.swiper-slide img{width:100%;height:50vw;}
</style>
<script>
//Swiper轮播
var swiper = new Swiper('.swiper-container', {
    pagination: '.swiper-pagination',
    paginationClickable: true,
    autoHeight: true, //enable auto height
    slidesPerView: 1,
    paginationClickable: true,
    spaceBetween: 30,
    loop: true,
    centeredSlides: true,
    autoplay: 3000,
    autoplayDisableOnInteraction: false
});
</script>
<!--顶部滚动广告栏-end-->
<?php } ?>

<!--导航左右滑动-start-->
<!--<div class="swiper-nav">
    <div class="swiper-wrapper">
        <div class="swiper-slide">新闻</div>
        <div class="swiper-slide">音乐</div>
        <div class="swiper-slide">Slide 3</div>
        <div class="swiper-slide">Slide 4</div>
        <div class="swiper-slide">Slide 5</div>
    </div>
</div>
<style>.swiper-nav{width: 100%;height: 50px;line-height:50px;border-bottom:1px solid #efefef;background-color:#fff;}</style>
<script>
var swiper = new Swiper('.swiper-nav', {
    slidesPerView: 4 //一行4列显示
});
</script>-->
<!--导航左右滑动-end-->

<!--菜单-start-->
<div class="floor home_menu" style="background-color:#fff;border-bottom:1px solid #f0f0f0;border-top:1px solid #f0f0f0;">
    <nav>
        <a href="<?php echo url('goods/category_list'); ?>">
                <img src="<?php echo http_host(); ?>/images/weixin/icon_05.png" alt="全部分类" />
                <span>全部分类</span>
        </a>
        <a href="<?php echo url('goods_brand/index'); ?>">
                <img src="<?php echo http_host(); ?>/images/weixin/icon_07.png" alt="品牌街" />
                <span>品牌街</span>
        </a>
        <a href="<?php echo url('goods/index').'?is_promote=1'; ?>">
                <img src="<?php echo http_host(); ?>/images/weixin/icon_15.png" alt="优惠商品" />
                <span>优惠商品</span>
        </a>
        <a href="<?php echo url('order/index'); ?>">
                <img src="<?php echo http_host(); ?>/images/weixin/icon_16.png" alt="我的订单" />
                <span>我的订单</span>
        </a>
        <a href="<?php echo url('cart/index'); ?>">
                <img src="<?php echo http_host(); ?>/images/weixin/icon_17.png" alt="购物车" />
                <span>购物车</span>
        </a>
        <a href="<?php echo url('user/index'); ?>">
                <img src="<?php echo http_host(); ?>/images/weixin/icon_19.png" alt="个人中心" />
                <span>个人中心</span>
        </a>
        <a href="javascript:;">
                <img src="<?php echo http_host(); ?>/images/weixin/icon_03.png" alt="敬请期待" />
                <span>敬请期待</span>
        </a>
    </nav>
</div>
<!--菜单-end-->

<!--资讯头条-start-->
<div class="bggrey">
<div class="home_toutiao" style="border-bottom:1px solid #f0f0f0;">
    <div class="home_toutiao_tit"><img src="<?php echo http_host(); ?>/images/weixin/ad_tit.png"></div>
    <div class="home_toutiao_box">
        <ul>
          <marquee id="mar1" scrollamount="1" direction="up" height="30" style="height: 30px;">
          <?php if($article_list){foreach($article_list as $k=>$v){ ?><li><a href="<?php echo url('article/detail').'?id='.$v['id']; ?>"><?php echo $v['title']; ?></a></li><?php }} ?>
          </marquee>
        </ul>
    </div>
</div>
</div>
<!--资讯头条-end-->

<!--猜您喜欢-start-->
<div class="floor" style="background-color:#fff;">
    <div class="xm-tit">购·畅销</div>
    <ul class="xm-list cl">
        <?php if($goods_sale_list){foreach($goods_sale_list as $k=>$v){ ?>
        <li><a href="<?php echo url('goods/detail').'?id='.$v['id']; ?>">
		<div class="xm-list-thumb">
            <?php if($v['is_promote']>0){ ?><span class="label">限时抢购</span><?php } ?>
			<img alt="" src="<?php echo $v['litpic']; ?>">
		</div>
        <div class="xm-list-info"><p class="xm-list-title"><?php echo $v['title']; ?></p>
        <p class="xm-list-desc"><?php echo mb_strcut($v['sell_point'],0,36,'UTF-8'); ?></p>
        <p class="xm-list-click"><?php echo $v['click']; ?>人查看</p>
        <p class="xm-list-price"><span class="price">￥<?php echo $v['price']; ?></span> <span class="market-price">￥<?php echo $v['market_price']; ?></span><span class="buy fr"></span></p>
        </div>
        </a></li>
        <?php }} ?>
    </ul>
</div>
<!--猜您喜欢-end-->

<!--猜您喜欢-start-->
<div class="floor" style="background-color:#fff;">
    <div class="ll-tit">购·新品</div>
    <ul class="ll-list" id="goods-list">
    <?php if($goods_list){foreach($goods_list as $k=>$v){ ?>
        <li><a href="<?php echo url('goods/detail').'?id='.$v['id']; ?>">
            <?php if($v['is_promote']>0){ ?><span class="label">限时抢购</span><?php } ?>
            <img alt="<?php echo $v['title']; ?>" src="<?php echo $v['litpic']; ?>">
            <div class="ll-list-info">
                <p class="ll-list-tit2"><?php echo $v['title']; ?></p>
                <p class="ll-list-click"><?php echo $v['click']; ?>人查看</p>
                <div class="ll-list-price"><span class="price">￥<?php echo $v['price']; ?></span> <span class="market-price">￥<?php echo $v['market_price']; ?></span></div>
            </div>
        </a></li>
    <?php }} ?>
    </ul>
</div>
<!--猜您喜欢-end-->

<!--猜您喜欢-start-->
<!--<div class="floor guesslike">
    <div class="banner_headline"><div class="tit"><h4>购·精选</h4></div></div>
    <div class="likeshop">
        <ul class="goods_list" id="goods_list">
        <?php if($goods_recommend_list){foreach($goods_recommend_list as $k=>$v){ ?>
            <li><a href="<?php echo url('goods/detail').'?id='.$v['id']; ?>"><img alt="<?php echo $v['title']; ?>" src="<?php echo $v['litpic']; ?>"><div class="goods_info"><p class="goods_tit"><?php if($v['is_promote']>0){ ?><span class="badge_comm" style="background-color:#f23030;">Hot</span> <?php } ?><?php echo $v['title']; ?></p><div class="goods_price">￥<b><?php echo $v['price']; ?></b><span class="fr"><?php echo $v['sale']; ?>人付款</span></div></div></a></li>
        <?php }} ?>
        </ul>
    </div>
</div>-->
<!--猜您喜欢-end-->

<!--猜您喜欢-start-->
<!--<div class="floor guesslike">
    <div class="banner_headline" style="margin-top:-4px;"><div class="tit"><h4>购·优惠</h4></div></div>
    <div class="likeshop">
        <ul class="goods_list" id="goods_list">
        <?php if($goods_promote_list){foreach($goods_promote_list as $k=>$v){ ?>
            <li><a href="<?php echo url('goods/detail').'?id='.$v['id']; ?>"><img alt="<?php echo $v['title']; ?>" src="<?php echo $v['litpic']; ?>"><div class="goods_info"><p class="goods_tit"><?php if($v['is_promote']>0){ ?><span class="badge_comm" style="background-color:#f23030;">Hot</span> <?php } ?><?php echo $v['title']; ?></p><div class="goods_price">￥<b><?php echo $v['price']; ?></b><span class="fr"><?php echo $v['sale']; ?>人付款</span></div></div></a></li>
        <?php }} ?>
        </ul>
    </div>
</div>-->
<!--猜您喜欢-end-->

<!-- <div id="mz-list" style="background-color:#fff;">
<div class="mz-tit">> 今日秒杀 <</div>
<div class="mz-list">
<a class="mz-list-img-box" href=""><span class="label">秒杀</span><img alt="" src="/images/201811201717328435.png"></a>
<div class="mz-list-time">悦来海景酒店&nbsp;&nbsp;<span class="fr">环岛商圈 | 2.50KM</span></div>
<div class="mz-list-title"><a href="">9.9元抢原价78元悦来海景酒店游泳池中心单次+免费汗蒸，独家夏日特惠</a></div>
<div class="mz-list-price"><span class="price">￥129.00</span> <span class="market-price">￥200.00</span> <span class="buy fr">马上抢</span><span class="buy-num fr">58人购买</span></div>
</div>
<div class="mz-list">
<a class="mz-list-img-box" href=""><span class="label">大礼包</span><img alt="" src="/images/201811201717328435.png"></a>
<div class="mz-list-time">悦来海景酒店&nbsp;&nbsp;<span class="fr">环岛商圈 | 2.50KM</span></div>
<div class="mz-list-title"><a href="">9.9元抢原价78元悦来海景酒店游泳池中心单次+免费汗蒸，独家夏日特惠</a></div>
<div class="mz-list-price"><span class="price">￥129.00</span> <span class="market-price">￥200.00</span> <span class="buy fr">马上抢</span><span class="buy-num fr">58人购买</span></div>
</div>
<div class="mz-list">
<a class="mz-list-img-box" href=""><img alt="" src="/images/201811201717328435.png"></a>
<div class="mz-list-time">悦来海景酒店&nbsp;&nbsp;<span class="fr">环岛商圈 | 2.50KM</span></div>
<div class="mz-list-title"><a href="">9.9元抢原价78元悦来海景酒店游泳池中心单次+免费汗蒸，独家夏日特惠</a></div>
<div class="mz-list-price"><span class="price">￥129.00</span> <span class="market-price">￥200.00</span> <span class="buy fr">马上抢</span><span class="buy-num fr">58人购买</span></div>
</div>
<div class="mz-list">
<a class="mz-list-img-box" href=""><img alt="" src="/images/201811201717328435.png"></a>
<div class="mz-list-time">悦来海景酒店&nbsp;&nbsp;<span class="fr">环岛商圈 | 2.50KM</span></div>
<div class="mz-list-title"><a href="">9.9元抢原价78元悦来海景酒店游泳池中心单次+免费汗蒸，独家夏日特惠</a></div>
<div class="mz-list-price"><span class="price">￥129.00</span> <span class="market-price">￥200.00</span> <span class="buy fr">马上抢</span><span class="buy-num fr">58人购买</span></div>
</div>
<div class="mz-list">
<a class="mz-list-img-box" href=""><img alt="" src="/images/201811201717328435.png"></a>
<div class="mz-list-time">悦来海景酒店&nbsp;&nbsp;<span class="fr">环岛商圈 | 2.50KM</span></div>
<div class="mz-list-title"><a href="">9.9元抢原价78元悦来海景酒店游泳池中心单次+免费汗蒸，独家夏日特惠</a></div>
<div class="mz-list-price"><span class="price">￥129.00</span> <span class="market-price">￥200.00</span> <span class="buy fr">马上抢</span><span class="buy-num fr">58人购买</span></div>
</div>
</div> -->

<style>
.banner_tit{font-size:18px;font-weight:400;background-color:#fff;color:#f23030;height:46px;line-height:46px;padding-left:10px;padding-right:10px;border-bottom:1px solid #eee;text-align:center;}
</style>
<script>
$(function(){
    var ajaxload  = false;
    var maxpage   = false;
    var startpage = 1;
    var totalpage = <?php echo $totalpage; ?>;
    
    var tmp_url   = window.location.href;
    msg = tmp_url.split("#");
    tmp_url = msg[0];
    
    $(window).scroll(function ()
    {
        var listheight = $('#goods-list').outerHeight(); 
        
        if ($(document).scrollTop() + $(window).height() >= listheight)
        {
            if(startpage >= totalpage)
            {
                //$("#submit_bt_one").html("已是最后一页，没有更多数据！");
                return false;
            }
            
            if(!ajaxload && !maxpage)
            {
                ajaxload = true;
                //$("#submit_bt_one").html("努力加载中...");
                var url = tmp_url;
                var nextpage = startpage+1;
                
                $.get(url,{page_ajax:1,page:nextpage},function(res)
                {
                    if(res)
                    {
                        $('#goods-list').append(res);
                        startpage++;
                        
                        if(startpage >= totalpage)
                        {
                            maxpage = true;
                            //$("#submit_bt_one").html("已是最后一页，没有更多数据！");
                        }
                        else
                        {
                            //$("#submit_bt_one").html("点击加载更多");
                        }
                        
                        ajaxload = false;
                    }
                    else
                    {
                        //$("#submit_bt_one").html("请求失败，请稍候再试！");
                        ajaxload = false;
                    }
                },'json');
            }
        }
    });
});
</script>
{include file="common/footer"/}
</body></html>